
package guiprototype;

import javax.swing.SwingUtilities;

import guiprototype.World;
import guiprototype.AppFrame;


public class App {

    static World world;
    
    public static void main(String[] args)
    {
        // TODO: Get game info from file or server using e.g. a popup dialog

        // Initialize game world before creating GUI
        //world = new World();

        // Create GUI in event thread
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                createAndShowGUI(); 
            }
        });
    }

    private static void createAndShowGUI() {
        //System.out.println("Created GUI on EDT? " + SwingUtilities.isEventDispatchThread());
    	World world = new World(); // TODO: Create here or other place?
        AppFrame f = new AppFrame(world);
    }
}

